﻿'   SplashScreen.vb
'   WireBear Awesemulator
'
'   Created by Chris Kent
'   Copyright 2011 WireBear. All rights reserved
'
#Region "License Information"
'   WireBear Awesemulator is free software: you can redistribute it and/or modify
'   it under the terms of the GNU General Public License as published by
'   the Free Software Foundation, either version 3 of the License, or
'   (at your option) any later version.
'
'   WireBear Awesemulator is distributed in the hope that it will be useful,
'   but WITHOUT ANY WARRANTY; without even the implied warranty of
'   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
'   GNU General Public License for more details.
'
'   You should have received a copy of the GNU General Public License
'   along with WireBear Awesemulator - License.txt
'   If not, see <http://www.gnu.org/licenses/>.
#End Region


Public NotInheritable Class SplashScreen
    Inherits Overlay

    Private Sub SplashScreen_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
        SetBackgroundImage(My.Resources.Splash)
        Overlay_Load(sender, e)
    End Sub

    Public Property Closable() As Boolean

    Private Sub SplashScreen_LostFocus(ByVal sender As Object, ByVal e As EventArgs) Handles Me.LostFocus
        If Closable Then
            DialogResult = Windows.Forms.DialogResult.OK
            Close()
        End If
    End Sub
End Class